import {tableOptBtnConfig} from "../table";

export default {
  "tableId": "project",
  "name": "项目管理",
  "columns": [
    {
      label: '项目类型',
      children: [
        {
          key: 'type',
        },
      ],
    },
    {
      label: '预览图',
      "width": 180,
      children: [
        {
          image: true,
          key: 'previewImages'
        },
      ]
    },
    {
      "label": "操作",
      "operation": true,
      "width": 185,
      "children": [
        {
          "button": true,
          type: tableOptBtnConfig.roomComponent.type,
        },
        {
          "button": true,
          type: tableOptBtnConfig.edit.type,
        },
        {
          'dropdown': true,
          'options': [
            {
              type: tableOptBtnConfig.upload.type
            },
            {
              type: tableOptBtnConfig.delete.type,
              class: 'font-hover-danger'
            }
          ]
        }
      ]
    }
  ],
  "filters": [
    {
      "fieldType": "input",
      key: 'name',
      label: '项目名称',
    },
    {
      "fieldType": "input",
      key: 'type',
      label: '项目类型',
    },
    {
      "fieldType": "input",
      key: 'description',
      label: '备注',
    },
  ]
}
